// This function processes the quiz data
function submitQuiz1()
{
	var q1 = document.forms.quiz1.question1;
	var q2 = document.forms.quiz1.question2;
	var q3 = document.forms.quiz1.question3;
	var q4 = document.forms.quiz1.question4;
	var q5 = document.forms.quiz1.question5;
	var q6 = document.forms.quiz1.question6;
	if( q1[ 0 ].checked == true && q2[ 0 ].checked == true && q3[ 0].checked == true && q4[ 0].checked == true &&
			q5[ 0 ].checked == true && q6[ 0 ].checked == true)
	{
		alert( "You passed! Click on the above link to print your Certificate of Completion." );
	}
	{
		document.getElementById( "cert-link" ).style.display = "inline";
	}	
	else
	{
		alert( "You failed" );
	}
	
	// call the function to report scores
	parent.reportScores();
}

